package cn.qayy.po;


import cn.qayy.dto.CostDTO;

/**
 * 
 * 
 * @author wangyu
 * 
 * @date 2018-11-13
 */
public class CostP {
    private Integer id;

    /**
     * 费用类型
     */
    private String costType;

    /**
     * 二级费用类型
     */
    private String costTypeTwo;

    /**
     * 申请金额
     */
    private String money;

    /**
     * 客户
     */
    private String customer;

    /**
     * 终端/区县
     */
    private String terminal;
    
    /**
     * 区县
     */
    private String county;

    /**
     * 条线
     */
    private String stripLine;

    /**
     * 品规
     */
    private String regulation;

    /**
     * 中标价
     */
    private String zbPrice;
    
    /**
     * 开票价
     */
    private String kpPrice;

    /**
     * 测算价
     */
    private String csPrice;

    /**
     * 返款总费用：1服务费+3服务费+4服务费
     */
    private String totalCost;

    /**
     * 返款信息
     */
    private String refundsInfo;

    /**
     * 开始日期
     */
    private String startTime;

    /**
     * 结束日期
     */
    private String endTime;

    /**
     * 当前月均纯销
     */
    private String nowMonthSale;

    /**
     * 目标月均纯销
     */
    private String aimMonthSale;

    /**
     * 备注
     */
    private String remark;
    
    /**
     * 状态
     * */
    private String status;
    //省份
    private String province;
    
    /**
     * 经理
     */
    private String mgr;
    
    public String getMgr() {
		return mgr;
	}

	public void setMgr(String mgr) {
		this.mgr = mgr;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province==null?null:province.trim();
	}

	public String getCostTypeTwo() {
		return costTypeTwo;
	}

	public void setCostTypeTwo(String costTypeTwo) {
		this.costTypeTwo = costTypeTwo==null?null:costTypeTwo.trim();
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county==null?null:county.trim();
	}

	/**
     * 操作人
     * */
    private String dataer;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCostType() {
        return costType;
    }

    public void setCostType(String costType) {
        this.costType = costType == null ? null : costType.trim();
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money == null ? null : money.trim();
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer == null ? null : customer.trim();
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal == null ? null : terminal.trim();
    }

    public String getStripLine() {
        return stripLine;
    }

    public void setStripLine(String stripLine) {
        this.stripLine = stripLine == null ? null : stripLine.trim();
    }

    public String getRegulation() {
        return regulation;
    }

    public void setRegulation(String regulation) {
        this.regulation = regulation == null ? null : regulation.trim();
    }

    public String getZbPrice() {
        return zbPrice;
    }

    public void setZbPrice(String zbPrice) {
        this.zbPrice = zbPrice == null ? null : zbPrice.trim();
    }

    public String getCsPrice() {
        return csPrice;
    }

    public void setCsPrice(String csPrice) {
        this.csPrice = csPrice == null ? null : csPrice.trim();
    }

    public String getTotalCost() {
        return totalCost;
    }

    public void setTotalCost(String totalCost) {
        this.totalCost = totalCost == null ? null : totalCost.trim();
    }

    public String getRefundsInfo() {
        return refundsInfo;
    }

    public void setRefundsInfo(String refundsInfo) {
        this.refundsInfo = refundsInfo == null ? null : refundsInfo.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getNowMonthSale() {
        return nowMonthSale;
    }

    public void setNowMonthSale(String nowMonthSale) {
        this.nowMonthSale = nowMonthSale == null ? null : nowMonthSale.trim();
    }

    public String getAimMonthSale() {
        return aimMonthSale;
    }

    public void setAimMonthSale(String aimMonthSale) {
        this.aimMonthSale = aimMonthSale == null ? null : aimMonthSale.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getKpPrice() {
		return kpPrice;
	}

	public void setKpPrice(String kpPrice) {
		this.kpPrice = kpPrice;
	}

	public String getDataer() {
		return dataer;
	}

	public void setDataer(String dataer) {
		this.dataer = dataer;
	}
	
	public CostP(Integer id, String costType, String costTypeTwo, String money, String customer, String terminal,
			String county, String stripLine, String regulation, String zbPrice, String kpPrice, String csPrice,
			String totalCost, String refundsInfo, String startTime, String endTime, String nowMonthSale,
			String aimMonthSale, String remark, String status, String dataer,String mgr) {
		super();
		this.id = id;
		this.costType = costType;
		this.costTypeTwo = costTypeTwo;
		this.money = money;
		this.customer = customer;
		this.terminal = terminal;
		this.county = county;
		this.stripLine = stripLine;
		this.regulation = regulation;
		this.zbPrice = zbPrice;
		this.kpPrice = kpPrice;
		this.csPrice = csPrice;
		this.totalCost = totalCost;
		this.refundsInfo = refundsInfo;
		this.startTime = startTime;
		this.endTime = endTime;
		this.nowMonthSale = nowMonthSale;
		this.aimMonthSale = aimMonthSale;
		this.remark = remark;
		this.status = status;
		this.dataer = dataer;
		this.mgr = mgr;
	}

	public CostP() {
		super();
	}

	/**
	 * 通过DTO初始化
	 * @param dto
	 */
	public void setByDTO(CostDTO dto) {
		//this.id = id;
		this.costType =dto.getCostType();
		this.costTypeTwo =dto.getCostTypeTwo();
		this.money =dto.getMoney();
		this.province= dto.getProvince();
		this.customer =dto.getCustomer();
		this.terminal =dto.getTerminal();
		this.county =dto.getCounty();
		this.stripLine =dto.getStripLine();
		this.regulation =dto.getRegulation();
		this.zbPrice =dto.getZbPrice();
		this.kpPrice =dto.getKpPrice();
		this.csPrice =dto.getCsPrice();
		this.totalCost =dto.getTotalCost();
		this.refundsInfo =dto.getRefundsInfo();
		this.startTime =dto.getStartTime();
		this.endTime =dto.getEndTime();
		this.nowMonthSale =dto.getNowMonthSale();
		this.aimMonthSale =dto.getAimMonthSale();
		this.remark =dto.getRemark();
		this.status =dto.getStatus();
		this.mgr =dto.getMgr();
		//this.dataer = dataer;
	}
}